package com.damie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dadie.Domain.ShopDomain;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dadie.Dto.ShopDto;
import com.dadie.parame.ShopParame;
import com.dadie.parame.UpdateShopParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alon
 * @since 2021-01-23
 */
public interface ShopService extends IService<ShopDomain> {

    ShopDto addProduct(ShopParame shopParame);

    Page<ShopDto> selectAllProduct(Integer index, Integer size, String shopName);

    ShopDto deleteByIdProduct(String pid);

    ShopDto updateByProduct(UpdateShopParam shopParame);

    ShopDto updateByProductNum(String pid, Integer num);
}
